<?php if(isset($upload_data)){?>
<img class="center" id="up_result" src="<?php echo image(base_url('uploads/' . $upload_data['file_name'] . ''), 'medium'); ?>" />
<input type="hidden" name="full_source_path" value="<?php echo pathinfo($upload_data['full_path'],PATHINFO_DIRNAME) . '/' . pathinfo(image('uploads/' . $upload_data['file_name'], 'medium'),PATHINFO_BASENAME); ?>">
<input type="hidden" name="orig_file_path" value="<?=$upload_data['full_path']?>">
<input type="hidden" name="image_full_name" id="image_full_name" value="<?=$upload_data['file_name']?>">
<?php }elseif (isset($error)) {?>
<font color="red"><?php echo isset($error)?$error:'';?></font>
<?php
} 
?>